﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Command
{
    /// <summary>
    /// 抽象命令
    /// </summary>
    public  abstract  class BaseCommand
    {
        private Docment _docment;
        public IHandle _handle { get; private set; }
        public BaseCommand(Docment docment)
        {
            _docment = docment;
        }

       public abstract void Excuted();

        public  void SetHandle(IHandle handle)
        {
            _handle = handle;
        }

    }
}
